package com.visiontech.volunteer_center.mapper;

import com.visiontech.volunteer_center.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface UserMapper {

    public Integer findUserId(@Param("account") String account);

    public User findByAccount(@Param("account") String account, @Param("roleId") Integer roleId);

    public Integer insertUser(@Param("userName") String userName , @Param("account") String account,
                              @Param("password") String password, @Param("email") String email,
                              @Param("phone") String phone);

    public Integer insertUser_Role(@Param("userId") Integer userId, @Param("roleId") Integer roleId);
}
